package com.pi.pro.xcmg.am.common.vo.act;

import com.pi.common.CodesConstants;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 码盘变更数据/
 * PDA
 */
@Getter
@Setter
public class PalletizeChangeData implements Serializable {
    private Long palletizeid;
    private String batchnumber;
    private String divisioncode;
    private String customercode;
    private String materialcode;
    private BigDecimal quantity;
    private String lotattr05;
    private String lotattr06;
    private String lotattr07;
    private String reservenumber;  //WBS批次
    private String containnumber;
    private String tracenumber;
    private String locationcode;
    private String udf01;
    private String udf02;
    private String udf03;
    private String udf04;
    private String udf05;
    private String udf06;
    private String udf07;
    private String udf08;
    private String udf09;
    private String udf10;
    private String createsource; //X-WMS
    private String schema;
    private String createtype;  //PO,MA...
    private String workmode;
    private String usercode;

    private String changetype= CodesConstants.DATA_WORKING_ADD;

    public String toString() {
        StringBuffer buf = new StringBuffer();
        buf.append("{");
        //
        buf.append("palletizeid:");
        if (this.palletizeid != null) {
            buf.append(this.palletizeid);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("batchnumber:");
        if (this.batchnumber != null) {
            buf.append(this.batchnumber);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("divisioncode:");
        if (this.divisioncode != null) {
            buf.append(this.divisioncode);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("customercode:");
        if (this.customercode != null) {
            buf.append(this.customercode);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("materialcode:");
        if (this.materialcode != null) {
            buf.append(this.materialcode);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("quantity:");
        if (this.quantity != null) {
            buf.append(this.quantity.stripTrailingZeros().toPlainString());
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("lotattr05:");
        if (this.lotattr05 != null) {
            buf.append(this.lotattr05);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("lotattr06:");
        if (this.lotattr06 != null) {
            buf.append(this.lotattr06);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("lotattr07:");
        if (this.lotattr07 != null) {
            buf.append(this.lotattr07);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("reservenumber:");
        if (this.reservenumber != null) {
            buf.append(this.reservenumber);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("containnumber:");
        if (this.containnumber != null) {
            buf.append(this.containnumber);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("tracenumber:");
        if (this.tracenumber != null) {
            buf.append(this.tracenumber);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("locationcode:");
        if (this.locationcode != null) {
            buf.append(this.locationcode);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("udf01:");
        if (this.udf01 != null) {
            buf.append(this.udf01);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("udf02:");
        if (this.udf02 != null) {
            buf.append(this.udf02);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("udf03:");
        if (this.udf03 != null) {
            buf.append(this.udf03);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("udf04:");
        if (this.udf04 != null) {
            buf.append(this.udf04);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("udf05:");
        if (this.udf05 != null) {
            buf.append(this.udf05);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("udf06:");
        if (this.udf06 != null) {
            buf.append(this.udf06);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("udf07:");
        if (this.udf07 != null) {
            buf.append(this.udf07);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("udf08:");
        if (this.udf08 != null) {
            buf.append(this.udf08);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("udf09;:");
        if (this.udf09 != null) {
            buf.append(this.udf09);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("udf10;:");
        if (this.udf10 != null) {
            buf.append(this.udf10);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("udf10;:");
        if (this.udf10 != null) {
            buf.append(this.udf10);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("createsource;:");
        if (this.createsource != null) {
            buf.append(this.createsource);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("schema;:");
        if (this.schema != null) {
            buf.append(this.schema);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("createtype;:");
        if (this.createtype != null) {
            buf.append(this.createtype);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("workmode;:");
        if (this.workmode != null) {
            buf.append(this.workmode);
        } else {
            buf.append("");
        }
        buf.append(",");
        //
        buf.append("usercode;:");
        if (this.usercode != null) {
            buf.append(this.usercode);
        } else {
            buf.append("");
        }
        buf.append("");

        buf.append("}");
        return buf.toString();
    }

}
